When connected to an OWE transition network, NetworkManager
reports the connected API with a hidden SSID.
Handle this by using the active connection's name before
ultimately falling back to the device name.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>
if (ssid)
return ssidToLabel(ssid);
+ // Use connection name when connected to hidden AP
+ const {activeConnection} = this._device;
+ if (activeConnection)
+ return activeConnection.connection.get_id();
+
return this._deviceName;
}